package com.yinian.server.controller;


import com.yinian.common.result.Result;
import com.yinian.pojo.vo.OperaVideoVO;
import com.yinian.pojo.vo.SquareDanceVideoVO;
import com.yinian.server.service.SquareDanceService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Slf4j
@Api(tags = "返回广场舞视频")
public class SquareDanceController {
    @Autowired
    private SquareDanceService squareDanceService;
   @GetMapping("/square-dance")
    public Result<List<SquareDanceVideoVO>> getSquareDanceVideo()
    {
        log.info("返回广场舞视频");
        return Result.success(squareDanceService.getSquareDanceVideo());
    }
}
